home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Georgia Wildfire Prevention
/
Georgia Wildfire Prevention.iso
/
pc
/
media
/
dirs
/
BackUp
/
CampFire.dir
/
00024_Script_animation objs
< prev
next >
Wrap
Text File
|
2002-10-14
|
1KB
|
64 lines
property spritenum,mysprite,mymem,myid,flasht,cycle,orect
on new me
mysprite=sprite(spritenum)
mymem=mysprite.member
myid=mymem.name
flasht=0
cycle=30
orect=mysprite.rect
end
on beginsprite me
mysprite.visible=1
mysprite.loch=(-2000)
end
on turnon me,id
if getpos(id,myid)>0 then
mysprite.rect=orect
updatestage
end if
end
on turnoff me,id
if getpos(id,myid)>0 then
mysprite.loch=(-2000)
flasht=0
mysprite.visible=1
updatestage
end if
end
on flashon me,id
if getpos(id,myid)>0 then
flasht=the ticks+cycle
end if
end
on flashoff me,id
if getpos(id,myid)>0 then
mysprite.visible=1
flasht=0
updatestage
end if
end
on exitframe me
if flasht<>0 then
if the ticks>=flasht then
mysprite.visible=not(mysprite.visible)
updatestage
flasht=the ticks+cycle
end if
end if
end
on move me,id,p
if id=myid then
mysprite.loc=p
updatestage
end if
end